export interface BaseTableCol {
    title:string;
    field:string;
} 

export interface BaseTableRowData {
    [key: string]: any;
} 

export interface RowEventContext<T> {
    row: T;
    index: number;
}

export interface BaseTableProps<T extends BaseTableRowData = BaseTableRowData>{
    data?:Array<T>;
    colums?:Array<BaseTableCol>;
    onRowClick?:(context:RowEventContext<T>)=>void;
}



